import React, { Component } from 'react'
import '../assets/style/formBtn_c.less'

export default class FormBtn extends Component {
    static defaultProps = {
        type: "",
        children: ""
    }
    render() {
        return (
            this.props.type === "ordinary"?
            <span className="form-btn-p" onClick={this.props.onClick}>{this.props.children}</span>:
            <button className="form-btn" onClick={this.props.onClick}>{this.props.children}</button>
        )
    }
}
